package com.tushare.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tushare.entity.MarginDetail;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jobob
 * @since 2021-03-08
 */
public interface IMarginDetailService extends IService<MarginDetail> {

    MarginDetail getLastMarginDetail();

    List<MarginDetail> getMarginDetailListByTsCode(String ts_code, int trade_date);

    List<MarginDetail> getTopMarginDetailList(String ts_code, int limit);

    boolean saveOrUpdateBatch(List<MarginDetail> list);

    boolean deleteAllMarginDetail();

}
